import Vue from 'vue'
import App from './App.vue'
// 引入路由
import router from './router'
import store from './store'
//ElementUI 和  css
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 引入icon
import './assets/icons' // icon
import './assets/icon/iconfont.css'//原本的icon
// directive
import directive from '@/directive'
// router拦截器
import './permission' 
// 分页组件
import Pagination from "@/components/Pagination";
// 字典数据组件
import DictData from '@/utils/dict/dict-main';
// 富文本组件
import Editor from "@/components/Editor"
// 文件上传组件
import FileUpload from "@/components/FileUpload"
// 图片上传组件
import ImageUpload from "@/components/ImageUpload"
// 图片预览组件
import ImagePreview from "@/components/ImagePreview"
// 字典标签组件
import DictTag from '@/components/DictTag'
// 全局方法
import { resetForm,ParamsAddDateRange,handleTree } from "@/utils/hkrich";
// 全局方法挂载
Vue.prototype.resetForm = resetForm
Vue.prototype.ParamsAddDateRange = ParamsAddDateRange
Vue.prototype.handleTree = handleTree
// 全局组件挂载
Vue.component('Pagination', Pagination)
Vue.component('DictTag', DictTag)
Vue.component('Editor', Editor)
Vue.component('FileUpload', FileUpload)
Vue.component('ImageUpload', ImageUpload)
Vue.component('ImagePreview', ImagePreview)
Vue.config.productionTip = false

//指令
Vue.use(directive)
// 使用element UI
Vue.use(ElementUI);
//初始化数据字典
DictData.install();



new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
